Skip to content

Add support for hidden files#6

Open
dukechain2333 wants to merge 2 commits intoZapperDJ:masterfrom
dukechain2333:master
Open

Add support for hidden files#6
dukechain2333 wants to merge 2 commits intoZapperDJ:masterfrom
dukechain2333:master

Conversation

@dukechain2333
Copy link

The program is now set to hide the hidden files by default. With an additional boolean argument, hidden files will appear in the index again.

Usage

The program only takes two arguments by default (the program will ignore those hidden files, which start with a . in Linux file system), the directory to be indexed and the output file name without the extension, so:

python diogeneslist.py /home/user filelist

Will index the contents of /home/user and save them to filelist.html on the current directory. Simple as that

if you want to show the hidden files in the index, you can use the following command:

python diogeneslist.py /home/user filelist True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant